package com.xinqi.modules.sys.dict.dto.req;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * 文档分类字典表-请求对象-新增
 *
 * @author: gzy
 * @date: 2023/05/28
 */
@Data
@Schema(description = "文档分类字典表-请求对象-新增")
public class DictDocumentCreateDTO implements Serializable {

    /**
     * 字典父级id
     */
    @Schema(description = "字典父级id", example = "")
    private Long parentId;
    /**
     * 字典父级编码
     */
    @Schema(description = "字典父级编码", example = "")
    private String parentDictCode;
    /**
     * 字典父级名称
     */
    @Schema(description = "字典父级名称", example = "")
    private String parentDictName;
    /**
     * 字典编码
     */
    @Schema(description = "字典编码", example = "")
    @NotNull(message = "字典编码不能为空")
    private String dictCode;
    /**
     * 字典名称
     */
    @Schema(description = "字典名称", example = "")
    private String dictName;
    /**
     * 字典排序
     */
    @Schema(description = "字典排序", example = "")
    private Long sort;
}
